package bookManager;

import bookManager.operation.*;

import java.util.Scanner;

public class NormalUser extends User{
    public NormalUser() {

        operations = new IOperation[] {
                new ExitOperation(),
                new DisplayOperation(),
                new FindOperation(),
                new BorrowOperation(),
                new ReturnOperation()
        };
    }

    @Override
    public int menu() {
        System.out.println("==========================");
        System.out.println(" 1. 查看书籍列表");
        System.out.println(" 2. 查找书籍");
        System.out.println(" 3. 借书");
        System.out.println(" 4. 还书");
        System.out.println(" 0. 退出");
        System.out.println("==========================");
        System.out.println("请输入你的选择");
        Scanner scanner=new Scanner(System.in);
        int choice=scanner.nextInt();
        return choice;
    }
}
